翻訳と辞書
Words near each other
・ Lucasian Professor of Mathematics
・ Lucasidia
・ Lucasium byrnei
・ Lucasium damaeum
・ Lucasium stenodactylum
・ Lucasius
・ Lucasta Miller
・ Lucasuchus
・ LucasVarity
・ Lucasville
・ Lucasville, New South Wales
・ Lucasville, Nova Scotia
・ Lucasville, Ohio
・ Lucas–Carmichael number
・ Lucas–Kanade method
Lucas–Lehmer primality test
・ Lucas–Lehmer–Riesel test
・ Lucatumumab
・ Lucava River
・ Lucavsala
・ Lucaya International School
・ Lucaya, Bahamas
・ Lucayablennius zingaro
・ Lucayan
・ Lucayan Archipelago
・ Lucayan Formation
・ Lucayan people
・ Lucazi language
・ Lucban, Quezon
・ Lucbardez-et-Bargues


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Lucas–Lehmer primality test : ウィキペディア英語版
Lucas–Lehmer primality test

In mathematics, the Lucas–Lehmer test (LLT) is a primality test for Mersenne numbers. The test was originally developed by Édouard Lucas in 1856〔(The Largest Known Prime by Year: A Brief History )〕 and subsequently improved by Lucas in 1878 and Derrick Henry Lehmer in the 1930s.
==The test==
The Lucas–Lehmer test works as follows. Let ''M''''p'' = 2''p'' − 1 be the Mersenne number to test with ''p'' an odd prime. The primality of ''p'' can be efficiently checked with a simple algorithm like trial division since ''p'' is exponentially smaller than ''M''''p''. Define a sequence \ for all ''i'' ≥ 0 by
:
s_i=
\begin
4 & \texti=0;
\\
s_^2-2 & \text
\end

The first few terms of this sequence are 4, 14, 194, 37634, ... .
Then ''M''''p'' is prime if and only if
:s_ \equiv 0 \pmod.
The number ''s''''p'' − 2 mod ''M''''p'' is called the Lucas–Lehmer residue of ''p''. (Some authors equivalently set ''s''1 = 4 and test ''s''''p''−1 mod ''M''''p''). In pseudocode, the test might be written as
''// Determine if M''p'' = 2''p'' − 1 is prime
Lucas–Lehmer(p)
var s = 4
var M = 2''p'' − 1
repeat p − 2 times:
s = ((s × s) − 2) mod M
if s = 0 return PRIME else return COMPOSITE
Performing the mod M at each iteration ensures that all intermediate results are at most ''p'' bits (otherwise the number of bits would double each iteration). The same strategy is used in modular exponentiation.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Lucas–Lehmer primality test」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.